package com.frejoys.common.dto.order;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

@Data
public class OrderGoodsDto {

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "goodsId", description = "商品id", required = true, defaultValue = "1")
    private Integer goodsId;

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "num", description = "商品数量", required = true, defaultValue = "1")
    private Integer num;

}
